package ArrayList_linkedList;/*
學生信息管理
1 添加學生
2
3修改學生
4刪除學生
 */

public class Student {

  private int id ;
  private String name;
  private int age;
  private String sex;

  public Student(){}
    public Student(int id,String name,int age,String sex){
      this.id = id;
      this.age=age;
      this.name=name;
      this.sex=sex;

    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void say(){
      System.out.println("我是"+this.name+"年齡"+this.age+"性別"+this.sex+"學號"+this.id);
    }

}
